<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{$SETTING[siteurl]}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="{SKIN_PATH}skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/jquery.cookie.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body> 


 



{template 'header.html'}




<style type="text/css">
.reg{
	/*border-bottom:#eee solid 1px;*/ padding:15px 0; 
}
.login{
	border-bottom:#eee solid 1px;
}
.reg strong{
	float: left;
    font-size: 24px;
    height: 80px;
    padding-top: 46px;
    text-align: center;
    width: 200px;
}
.login form{
	 padding: 10px 0 0 20px;
    position: relative;
}  
</style>

<!--<div class="container" style="margin-top:5px">
	<img src="../skin/images/index_banner.jpg"/>
</div>-->
 

<div class="container"> 
    <div class="main"> 
    	
        <!--<script src="scripts/KinSlideshow/js/jquery-1.4a2.min.js" type="text/javascript"></script>
		<script src="scripts/KinSlideshow/js/jquery.KinSlideshow-1.0.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function(){
                $("#KinSlideshow").KinSlideshow({
                        moveStyle:"down",
                        intervalTime:8,
                        mouseEvent:"mouseover",
						isHasTitleBar:false, 
						isHasTitleFont:false
                });
            })
        </script>
        <div id="KinSlideshow" style="visibility:hidden;">
            <a href="http://down.liehuo.net" target="_blank"><img src="{SKIN_PATH}skin/images/1.jpg" alt="这是标题一" /></a>
            <a href="http://down.liehuo.net" target="_blank"><img src="{SKIN_PATH}skin/images/2.jpg" alt="这是标题二" /></a>
            <a href="http://down.liehuo.net" target="_blank"><img src="{SKIN_PATH}skin/images/3.jpg" alt="这是标题三" /></a>
        </div>-->
        
        
        <div class="mod">
        	<div class="head"></div>
            <div class="body reg">
            	
                    <strong>网站社区<br/>
                    <small>bbs</small></strong>
                    <h2>仅需30秒，即可加入我们大的群体！</h2>
                    <p>共有<em>{php echo content_all_count();}</em>篇文章，今日更新<em>
                    {php echo content_today_count();}</em>篇文章
                    <br/>共有<em>{php echo sign_all_count();}</em>条个性签名，今日更新<em>
                    {php echo sign_today_count();}</em>条个性签名</p>
                    <p><a class="button" rel="nofollow" href="{url("?module=member&action=register")}">立即加入</a>
                    <a class="button" rel="nofollow" href="{url("?module=member&action=login")}">登录</a></p>
        
            </div>
        </div>
        
        
            
            <div class="mod">
            	<div class="head">猜你喜欢(<a href="" onClick="$(function(){$.cookie('isguess', '1'); window.location.href='{SITE_URL}';})">去旧版</a>)</div>
                <div class="body guess">
                	
                    
                    <!--猜开始-->
                    <style type="text/css">
						.guess {
							margin:20px 0; height:auto; overflow:hidden;
						}
						.guess ul{ padding:0;}
						.guess li{
							float:left; display:inline; width:150px; height:300px; border-left:#eee solid 1px;  border-bottom:#eee solid 1px; padding:20px; overflow:hidden;
						}
						.guess li.row{ width:100%; height:auto; overflow:hidden; padding:10px;}
					</style>
					
					<script>
						$(function(){
							$('.guess li').hover(function(){
								$(this).find('img').css('opacity',0.8);
							},
							function(){
								$(this).find('img').css('opacity',1);
							})
						})
					</script>
                    <ul>
          	
                      {php $i=0;}
                      {loop $data $k $r}
                        
                        {php $i++;}
                        {if $i==41} 
                        {php break;} 
                        {/if}
                        {if $k != 3}
                        
                        <li> 
                            {if $r[thumb]}
                            <img src="{php echo $r[thumb] ? thumb($r[thumb],'120','150') : thumb('misc/nopic.gif','120','')}"/>
                            {/if}
                            
                            <h3><a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 60)}</a></h3>
                            <div class="attr">
                            {if date('Y-m-d',$r[updatetime]) == date('Y-m-d')}
                                <font color="red">{date('Y-m-d',$r[updatetime])}</font>
                            {else}
                                <font color="gray">{date('Y-m-d',$r[updatetime])}</font>
                            {/if}
                            </div>
                            
                            {if $r[description]}
                            <div class="clear">
                                
                                {if $r[thumb]}
                                    {str_cut(str_replace('　','',$r[description]),60)} 
                                {else}
                                    {str_cut(str_replace('　','',$r[description]),150)} 
                                {/if}
                                
                            </div>
                            {/if}
                            
                            
                            {if $keywords}
                            <div>tag:
                                {loop $keywords $k $v}
                                <a href="{url("?module=content&action=tag&name=$v")}">{$v}</a>
                                {/loop}
                            </div>
                            {/if}
                            
                            <div class="keywords"><a href="{url($r[url])}">{$r[hits]}♥</a></div>
                      </li>
                      
                      {else}
                        
                        <li class="row"> 
                            广告位
                        </li>
                      
                      {/if}
            
                      {/loop}
                      
                      <li class="row"> 
                            广告位
                        </li>
                    </ul>
            		<!--猜结束-->
                </div>
            </div> 
			

    </div>
    
    <div class="aside"> 
    
    <div class="mod">
    	<div class="head">通知</div>
        <div class="body">
        	做电商 上派代251615电商人的靠谱选择 
            <p><a class="button" rel="nofollow" href="{url("?module=member&action=register")}">立即加入</a></p>
        </div>
    </div>
    
    <div class="mod">
        <div class="head">最新注册企业&nbsp;<small>companys</small>(<a href="{url("?module=yellowpage")}">更多</a>)</div>
        <div class="body">
            <ol>
              {get sql="SELECT userid,companyname,sitedomain FROM `table_member_company` WHERE status = 1 ORDER BY userid DESC" rows="7"}
                {if $r[companyname]}<li>{str_cut($r[companyname],26,'..')} &nbsp;&nbsp;&nbsp;[<a href="{url("?module=yellowpage&userid=$r[userid]")}" title="{$r[companyname]}">企业黄页</a>]</li>{/if}
              {/get}
            </ol>
        </div>
    </div>
    
    
    <div class="mod">
        <div class="head">最新注册会员&nbsp;<small>members</small>(<a href="{url("?module=member&action=list")}">更多</a>)</div>
        <div class="body">
            <ol>
            {php $sql = "SELECT * FROM `".DB_PRE."member` WHERE modelid=10 AND disabled=0 ORDER BY userid ASC"}
             {get sql="$sql" rows="16" page="$page"}
             	<li>{$r[username]}&nbsp;&nbsp;&nbsp;[<a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}" target="_blank">个人主页</a>]</li>
             {/get}
            </ol>
        </div>
    </div>
    
    
    <div class="mod">
        <div class="head">每日箴言&nbsp;<small>Daily proverb</small>(<a href="{url("?module=say")}">更多</a>)</div>
        <div class="body">
            {get sql="select url,userid,username,description,hits from table_say order by sayid DESC" rows="1"}
            {$r[description]}
            {/get}
        </div>
    </div>
    
    
    <div class="mod">
        <div class="head">最新公告&nbsp;<small>Announce</small>(<a href="{url("?module=announce")}">更多</a>)</div>
            <ul class="body">
          {get sql="select announceid,title,addtime from table_announce order by addtime desc" rows="10"}
            <li>({date('m-d',$r[addtime])})&nbsp;<a href="{url("?module=announce&announceid=$r[announceid]")}">{$r[title]}</a> </li>
          {/get}
          </ul>
     </div>
    
   <div class="mod">
   		<div class="head">好友动弹&nbsp;<small>tweet</small>(<a href="{url("?module=tweet")}">更多</a>)</div>
    	<ul class="body">
	  {get sql="select userid,username,description,url,updatetime from table_tweet order by tweetid DESC" rows="10"}
		<li>({date('m-d',$r[updatetime])})&nbsp;<a href="{url("?module=space&userid=$r[userid]")}">@{$r[username]}</a>:&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[description],21,'...')}</a></li>
	  {/get}
      </ul>
      </div>
      
        <div class="mod">
            <div class="head"><span>会员列表</span>(<a href="{url("?module=member&action=list")}">更多</a>)</div>
            <ul class="body users">
            {get sql="select * from table_member where avatar <> '' order by userid ASC " rows="12"}
            <li>
             <a href="{url("?module=space&userid=$r[userid]")}" title="{$r[username]}"><img src="{thumb(avatar($r[userid]),40,40)}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
             <!--<br/><a href="./index.php?module=space&file=fans&action=add&userid={$r[userid]}" class="add">关注TA</a>-->
             <!--<p><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a></p>-->
            </li>
          {/get}
          </ul>
        </div>
        
        
        <div class="mod">
            <div class="head"><span>最新小组</span><small>Members</small>(<a href="{url("?module=group")}">更多</a>)</div>
            <ul class="body users">
            {get sql="select * from table_group where thumb <> '' order by updatetime ASC " rows="12"}
            <li>
             <a href="{url("?module=group&groupid=$r[groupid]")}" title="{$r[title]}"><img src="{thumb($r[thumb],40,40)}" alt="{$r[title]}" target="_blank" width="40" height="40"/></a>
            </li>
          {/get}
          </ul>
        </div>
        
          
     <div class="mod">
        <div class="head"><span>商家列表</span>&nbsp;<small>business</small>(<a href="{url('?module=member&action=apply')}">申请</a>)</div>
        <ul class="body users">
      <!--{get sql="select * from table_member" rows="12"}-->
        <li>
         <a href="{url("?module=space&userid=$r[userid]")}"><img src="{avatar($r[userid])}" alt="{$r[username]}"  target="_blank" width="40" height="40"/></a>
         <!--<br/><a href="./index.php?module=space&file=fans&action=add&userid={$r[userid]}" class="add">关注TA</a>-->
         <!--<p><a href="{url("?module=space&userid=$r[userid]")}">{$r[username]}</a></p>-->
        </li>
      <!--{/get}-->
      </ul>
    </div>
      
    
     <div class="mod">
    	<div class="head">热门阅读&nbsp;<small>hot reads</small>(<a href="#">更多</a>)</div>
        <ul class="body">
          <!--{get sql="select title,url,hits from table_content order by hits desc" rows="10"}-->
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}">{$r[title]}</a></li> 
          <!--{/get}-->
        </ul>
    </div>
          
          
          <div class="mod">
              <div class="head">代码分享&nbsp;<small>Codex</small>(<a href="{url("?module=codex")}">更多</a>)</div>
                <ul class="body">
                {get sql="SELECT * FROM `table_codex` WHERE  status=99 ORDER BY codexid DESC" rows="20" page="$page"}
                <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
                {/get}
                 </ul>
           </div>  
             
             <div class="mod">
                 <div class="head">软件下载&nbsp;<small>Download</small>(<a href="{url("?module=soft")}">更多</a>)</div>
                <ul class="body">
                    {get sql="SELECT * FROM `table_soft` WHERE  status=99 ORDER BY softid DESC" rows="20" page="$page"}
                    <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
                    {/get}
                </ul>
            </div>
            
        
        <div class="mod">    
            <div class="head">最新博客&nbsp;<small>Blogs</small>(<a href="{url("?module=blog")}">更多</a>)</div>
            <ul class="body">
            {get sql="SELECT `title`,`url`,`hits` FROM `table_blog` WHERE  status=99 ORDER BY blogid DESC" rows="20" page="$page"}
            <li>({$r[hits]})&nbsp;<a href="{url($r[url])}" target="{$target}">{str_cut($r[title], 300)}</a></li>
            {/get}
             </ul>
         </div> 
          
        <div class="mod">
            <div class="head">最新评论&nbsp;<small>Comments</small></div>
            <ul class="body">
              <!--{get sql="select commentid,content from table_comment order by addtime desc" rows="10"}-->
                <li><a rel="nofollow" href="#">{str_cut(htmlspecialchars(trim($r[content])),30)}</a></li>
              <!--{/get}-->
              </ul>
         </div>
          
         
        <div class="mod">
            <div class="head">热门标签&nbsp;<small>hot tags</small>(<a href="#">更多</a>)</div>
            <div class="body keywords">
          <!--{get sql="select tag,hits from table_keyword order by listorder desc,hits desc" rows="10"}-->
            <a href="{url("?module=content&action=tag&name=".urlencode($r[tag]))}">{$r[tag]} <small>({$r[hits]})</small></a>
          <!--{/get}-->
          </div>
        </div>
        
        
        <div class="mod">
            <div class="head">站内搜索&nbsp;<small>Search</small></div>
            <div class="body">
                <form>
                    <input name="" type="text" value="请输入关键字" />
                    <input name="" type="button" value="搜索" />
                 </form>
            </div>
        </div>
        
        <div class="mod">
            <div class="head">功能&nbsp;<small>Plugins</small></div>
            <ul class="body">
                <li><a rel="nofollow" href="admin.php">管理员登陆</a></li>    
                <li><a rel="nofollow" href="{url("?module=rss")}">网站RSS</a></li>    
            </ul>
        </div>
        
        <div class="mod">
        	<div class="head"><span>友情链接&nbsp;<small>Flink</small></span>(<a href="{url('?module=flink&action=apply')}">申请</a>)</div>
            <div class="body">
                <a rel="nofollow" href="#">百度</a>&nbsp;   
                <a rel="nofollow" href="#">谷歌</a>   
            </div>
        </div>
        
        
        
        <div class="mod">
        	<div class="head"><span>相关链接&nbsp;<small>Flink</small></span>(<a href="{url('?module=flink&action=apply')}">申请</a>)</div>
            <div class="body">
                <select name="" onChange="window.open(this.options[this.selectedIndex].value)">
                    <option>—其他相关链接—</option>
                    <option value="http://www.baidu.com">—百度—</option> 
				</select> 
            </div>
        </div>
          
          
    </div>
</div>



<div class="container">
	
	<style type="text/css">
        .tels{ }
        .tels p{
            border:#eee solid 1px; width:75px; height:35px; float:left; display:inline; margin:5px 5px 0 0; padding:7px 10px; line-height:18px;				}
        .tels p em{ color:#666;}
    </style>
    <div class="mod">
        <div class="head">便民服务</div>
        <div class="body tels">
            <p><a href="#">市长热线<br/><em>12345</em></a></p>
            <p><a href="#">交通事故<br/><em>122</em></a></p>
            <p><a href="#">天气预报<br/><em>121</em></a></p>
            <p><a href="#">劳动保障投诉<br/><em>12333</em></a></p>
            <p><a href="#">环境热线<br/><em>12369</em></a></p>
            <p><a href="#">价格投诉举报<br/><em>12358</em></a></p>
            <p><a href="#">司法热线<br/><em>12348</em></a></p>
            <p><a href="#">中国电信<br/><em>10000</em></a></p>
            <p><a href="#">中国联通<br/><em>10010</em></a></p>
            <p><a href="#">中国移动<br/><em>10086</em></a></p>
            <p><a href="#">劳动保障投诉<br/><em>12333</em></a></p>
            <p><a href="#">环境热线<br/><em>12369</em></a></p>
            <p><a href="#">价格投诉举报<br/><em>12358</em></a></p>
            <p><a href="#">司法热线<br/><em>12348</em></a></p>
            <p><a href="#">中国电信<br/><em>10000</em></a></p>
            <p><a href="#">中国联通<br/><em>10010</em></a></p>
            <p><a href="#">中国移动<br/><em>10086</em></a></p>
        </div>
    </div>
</div>


{template 'footer.html'}
